home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Visual Database / Visual dBase v5.5 / SAMPINC.PAK / UTILS.H < prev    next >
C/C++ Source or Header  |  1995-07-18  |  1KB  |  57 lines

  1. *******************************************************************************
  2. *  FILE:         Utils.h
  3. *
  4. *  WRITTEN BY:   Borland Samples Group
  5. *
  6. *  DATE:         8/22/93
  7. *
  8. *  UPDATED:      5/95
  9. *
  10. *  REVISION:     $Revision:   1.7  $
  11. *
  12. *  VERSION:      Visual dBASE
  13. *
  14. *  DESCRIPTION:  Header file for Visual dBASE samples.
  15. *
  16. *  PARAMETERS:   None
  17. *
  18. *  CALLS:        None
  19. *
  20. *  USAGE:        (in a file)
  21. *                #include <Utils.h>
  22. *
  23. *******************************************************************************
  24.  
  25. #ifndef UTILS_H
  26. #define UTILS_H
  27.  
  28. *** Various useful macros
  29.  
  30. #define ALLTRIM(s)  ltrim(rtrim(s))
  31. #define TRIMSTR(n)  ltrim(str(n))
  32.  
  33. *** MENUITEM can be used to define menus (dBASE 5.0 for DOS compatibility)
  34.  
  35. #define MENUITEM   MENU
  36.  
  37. *** Flags parameter settings for form/control event handling routines.
  38. *** More than one of these can be on at one time (e.g. you can press ctrl-left
  39. *** mouse button.)   To check if a combination of settings has been selected,
  40. *** use BITAND(setting1,setting2)
  41.  
  42. #define MK_LBUTTON  1
  43. #define MK_RBUTTON  2
  44. #define MK_SHIFT    4
  45. #define MK_CONTROL  8
  46. #define MK_MBUTTON  10
  47.  
  48. *** NType parameter setting for the OnSize event handler of forms
  49.  
  50. #define SIZE_RESTORED   0
  51. #define SIZE_MINIMIZED  1
  52. #define SIZE_MAXIMIZED  2
  53. #define SIZE_MAXSHOW    3
  54. #define SIZE_MAXHIDE    4
  55.  
  56. #endif
  57.